package com.itheima.chap03;

public class DigitalProduct extends Product {
    private String secretKey;

    public DigitalProduct(String name, double price, String secretKey) {
        super(name, price);
        this.secretKey = secretKey;
    }

    @Override
    public String displayINfo() {
        return super.displayINfo() + ",密钥是：" + "******";
    }

    @Override
    public void sendProduct() {
        System.out.println("同过网络发送卡密信息：卡号（XXX），密码（xxxx）");
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;


    }
}
